<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Add Sensitive Word</title>
		<logic:notPresent name="back">
        	<link href="login.css" rel="stylesheet" type="text/css">
        </logic:notPresent>
        <logic:present name="back">
        	<link href="form/login.css" rel="stylesheet" type="text/css">
        </logic:present>
	</head>
	<body>
		<logic:notPresent name="userid" scope="session">
           	<logic:redirect forward="login_error"></logic:redirect>
		</logic:notPresent>
		<logic:notPresent name="admin" scope="session">
			<logic:redirect page="/not_admin.jsp"></logic:redirect>
		</logic:notPresent>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
				<div id="login">
					<html:link action="viewWord">back</html:link>
			    	<html:link action="mainPre">main page</html:link>
			    </div>
			</div>
			<div class="content">
					<h1>Add Sensitive Word</h1>
	                <p>
	                    <html:form action="/addWord">
							word : <html:text property="word"/><html:errors property="word"/><br/>
							<html:submit/><html:cancel/>
						</html:form>
	                </p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html>